<template>
	<view>
			这是一个登陆组件  {{msg}}
		
			<button type="primary" @click="sendMsg">给父组件传值</button>
			
	</view>
</template>

<script>
	export default {
		props: ['msg'],
		data() {
			return {
				status: '打篮球'
			};
		},
		methods:{
			sendMsg(){
				this.$emit('myEvent',this.status)
			}
		}
	}
</script>

<style>

</style>
